Fix a compiler warning
authorFrançois Bonzon <1116761+fbonzon@users.noreply.github.com>
Thu, 26 Oct 2017 01:44:27 +0000 (03:44 +0200)
committerFrançois Bonzon <1116761+fbonzon@users.noreply.github.com>
Thu, 26 Oct 2017 01:44:27 +0000 (03:44 +0200)
warning: equality comparison with extraneous parentheses [-Wparentheses-equality]

grtcirc.cc

index a29d69b3c887995fdf8c277c666b98cbeb815a40..1ccfdf99f16d54e41f9337265a3e2cb6f2de9020 100644 (file)
@@ -88,9 +88,9 @@ double gcdist(double lat1, double lon1, double lat2, double lon2)
   if (
 #if defined isnan
     /* This is a C99-ism. */
-    (isnan(res)) ||
+    isnan(res) ||
 #endif
-    (errno == EDOM)) { /* this should never happen: */
+    errno == EDOM) { /* this should never happen: */
     errno = 0;         /* Math argument out of domain of
                function, */
     return 0;          /* or value returned is not a number */